package com.atguigu.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;

/**
 * 全局的自定义全局异常处理（兜底方法）
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception) {
        return new CommonResult<>(444, "按照客户自定义，global handlerException全局异常处理 ---- 1");
    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult<>(444, "按照客户自定义，global handlerException全局异常处理 ---- 2");
    }

}